package com.example.foobar.business.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.foobar.dao.service.DidiOrdersDaoService;
import com.example.foobar.entity.DaUserOfficialAccount;
import com.example.foobar.entity.DidiOrders;
import com.example.foobar.mapper.DidiOrdersMapper;
import com.example.foobar.param.DidiDateParam;
import com.example.foobar.param.DidiOrdersPageParam;
import com.example.foobar.vo.DidiData;
import io.geekidea.springbootplus.framework.core.pagination.PageInfo;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

/**
 * 本地公众号信息 服务类
 *
 * @author 郑英奔
 * @since 2021-05-31
 */
public interface DidiOrderService {


    @Transactional(rollbackFor = Exception.class)
    boolean saveDidiOrders(DidiOrders didiOrders) throws Exception;

    @Transactional(rollbackFor = Exception.class)
    boolean updateDidiOrders(DidiOrders didiOrders) throws Exception;

    @Transactional(rollbackFor = Exception.class)
    boolean deleteDidiOrders(Long id) throws Exception;

    Paging<DidiOrders> getDidiOrdersPageList(DidiOrdersPageParam didiOrdersPageParam) throws Exception;

    DidiOrders getById(Long id) throws Exception;

    boolean saveOrUpdateByOrderId(DidiOrders didiOrders) throws Exception;

    Paging<DidiData> getDidiDateList(DidiDateParam didiDateParam);
}
